package com.itheima.day15_修饰符;
/*
运行结果：
品牌：大米,价格：2000.0,尺寸：6
打电话
视频通话
发短信
 */
public class SmartPhone extends Phone{
    public SmartPhone() {
    }

    public SmartPhone(String brand, double price) {
        super(brand, price);
    }

    @Override
    public void call(){
        super.call();
        System.out.println("视频通话");
    }
}
class Demo{
    public static void main(String[] args) {
        SmartPhone o = new SmartPhone("大米",2000 );
        System.out.println("品牌：" + o.getBrand() + ",价格：" + o.getPrice() + ",尺寸：" + o.size);
        o.call();
        o.sendMessage();
        o.playGame();
    }
}
